<?php
require_once 'Zend/Validate/Abstract.php';
class Validate_Payment extends Zend_Validate_Abstract
{
    const PAYMENT = 'category';
    protected $_messageTemplates = array(
        self::PAYMENT => "'%value%' is not a valid Payment option"
    );

    public function isValid($value)
    {
        $this->_setValue($value);	

        return (in_array($value, Ebay_Codes::get('BuyerPaymentMethod'))) ? true : false ;
    }
}